package com.erp.purchase.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.erp.common.annotation.Excel;
import com.erp.common.core.domain.BaseEntity;

/**
 * 供应商对象 erp_supplier
 *
 * @author ruoyi
 * @date 2025-09-03
 */
public class Supplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商ID */
    private Long supplierId;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 企业/单位名称 */
    @Excel(name = "企业/单位名称")
    private String enterpriseName;

    /** 所属省 */
    @Excel(name = "所属省")
    private String province;

    /** 所属市 */
    @Excel(name = "所属市")
    private String city;

    /** 所属区 */
    @Excel(name = "所属区")
    private String area;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailAddress;

    /** 主采类目（逗号分隔） */
    @Excel(name = "主采类目", readConverterExp = "逗=号分隔")
    private String mainCategories;

    /** 照片路径 */
    @Excel(name = "照片路径")
    private String photo;

    /** 客户类型（字典值） */
    @Excel(name = "客户类型", readConverterExp = "字=典值")
    private String customerType;

    /** 客户等级（字典值） */
    @Excel(name = "客户等级", readConverterExp = "字=典值")
    private String customerLevel;

    /** 结算方式（字典值） */
    @Excel(name = "结算方式", readConverterExp = "字=典值")
    private String settlementMethod;

    public void setSupplierId(Long supplierId)
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId()
    {
        return supplierId;
    }

    public void setContact(String contact)
    {
        this.contact = contact;
    }

    public String getContact()
    {
        return contact;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setEnterpriseName(String enterpriseName)
    {
        this.enterpriseName = enterpriseName;
    }

    public String getEnterpriseName()
    {
        return enterpriseName;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }

    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }

    public void setDetailAddress(String detailAddress)
    {
        this.detailAddress = detailAddress;
    }

    public String getDetailAddress()
    {
        return detailAddress;
    }

    public void setMainCategories(String mainCategories)
    {
        this.mainCategories = mainCategories;
    }

    public String getMainCategories()
    {
        return mainCategories;
    }

    public void setPhoto(String photo)
    {
        this.photo = photo;
    }

    public String getPhoto()
    {
        return photo;
    }

    public void setCustomerType(String customerType)
    {
        this.customerType = customerType;
    }

    public String getCustomerType()
    {
        return customerType;
    }

    public void setCustomerLevel(String customerLevel)
    {
        this.customerLevel = customerLevel;
    }

    public String getCustomerLevel()
    {
        return customerLevel;
    }

    public void setSettlementMethod(String settlementMethod)
    {
        this.settlementMethod = settlementMethod;
    }

    public String getSettlementMethod()
    {
        return settlementMethod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("supplierId", getSupplierId())
                .append("contact", getContact())
                .append("phone", getPhone())
                .append("enterpriseName", getEnterpriseName())
                .append("province", getProvince())
                .append("city", getCity())
                .append("area", getArea())
                .append("detailAddress", getDetailAddress())
                .append("mainCategories", getMainCategories())
                .append("photo", getPhoto())
                .append("customerType", getCustomerType())
                .append("customerLevel", getCustomerLevel())
                .append("settlementMethod", getSettlementMethod())
                .append("createTime", getCreateTime())
                .toString();
    }
}
